package Assignment.Test2_3;

public class Phone implements Iplay{
    private String name;
    private int price;

    public Phone() {}
    public Phone(String name, int price) {
        this.name = name;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public void call(){
        System.out.println("打电话");
    }

    public void note(){
        System.out.println("发短息");
    }

    @Override
    public void play() {
        System.out.println("父类");
    }
}
